@()
<script>

		var name
		var age
		var sampleId
		var extraDataJson = {}
		var missionJson = {}
		var pdfInfo = {}

		function reduceTime() {
			$.ajax({
				url: "@routes.UserController.reduceTimes",
				type: "get",
				success: function (data) {

				}
			});

		}

		function showResult(id) {
			$("#mode2,#mode3").hide()
			var index = layer.load(1, {
				shade: [0.1, '#fff']
			});
			$.ajax({
				url: "@routes.PredictController.predictResult?missionId=" + id,
				type: "get",
				dataType: "json",
				success: function (data) {
					layer.close(index)
					$("#showSampleId").text(data.extraData.sampleId)
					$("#showName").text(data.extraData.name)
					missionJson = data.mission
					extraDataJson = data.extraData
					dealPredictInfo(data)
					$("#tab_1").tab("show")
					$("#result").show()
					var target_top = $("#result").offset().top
					$("html,body").animate({scrollTop: target_top}, 800)
				}
			})
		}


</script>
